#include "EntityCharacter.h"

EntityCharacter::EntityCharacter() {
}

EntityCharacter::~EntityCharacter() {
    Utils::safeRelease(this->avatars);
    Utils::safeRelease(this->dps);
    Utils::safeRelease(this->cost);
}

bool EntityCharacter::init() {
    this->characterId = -1;
    this->name = "";
    this->avatarImage = "";
    this->cost = NULL;
    this->attackTime = -1;
    this->maxLevel = -1;
    this->dps = NULL;
    this->maxDps = NULL;
    this->avatars = __Array::create();
    CC_SAFE_RETAIN(this->avatars);
    return true;
}